package com.dh.bm.controller;

import com.dh.bm.entity.Book;
import com.dh.bm.service.BookService;

import java.util.List;

public class BookController {
    private BookService bookService = new BookService();

    public List<Book> all() {
        return bookService.findAll();
    }

    public Book findById(int id) {
        return bookService.findById(id);
    }
}
